package spittr.data;

import spittr.Spittle;

import java.util.List;

/**
 * Created by ThinkPad on 2017/9/7.
 */
public interface SpittleRepository {
    List<Spittle> findRecentSpittles();

    /**
     *
     * @param max 代表返回的Spittle中,id属性的最大值
     * @param count 代表返回的Spittle对象的个数
     * @return
     */
    List<Spittle> findSpittles(long max,int count);

    Spittle findOne(long id);

    void save(Spittle spittle);
}
